package com.example.travel.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import nonapi.io.github.classgraph.json.Id;

/**
 * @Author : LinQingLiang
 * @file : Comment.java
 * @Since : 2023/2/15 18:05
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("comments")
public class Comment {

    @TableId(type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty("评论内容")
    private String content;
    @ApiModelProperty("评论人id")
    private Integer userId;
    @ApiModelProperty("评论时间")
    private String time;
    @ApiModelProperty("父id")
    private Integer pid;
    @ApiModelProperty("最上级id")
    private Integer originId;
    @ApiModelProperty("关联文章id")
    private Integer articleId;

}
